import Vue from 'vue'
import './plugins/axios'
import qs from 'qs'
import App from './App.vue'
import router from './router'
import store from './store'
import './styles/quasar.styl'
import 'quasar-framework/dist/quasar.ie.polyfills'
import lang from 'quasar-framework/i18n/zh-hans'
import 'quasar-extras/animate'
import 'quasar-extras/material-icons'
import Quasar from 'quasar'
import conf from './js/conf'
import Router from 'vue-router'

Vue.use(Quasar, {
  config: {}, i18n: lang
})
Vue.config.productionTip = false
Object.defineProperty(Vue.prototype, '$conf', { value: conf })
Object.defineProperty(Vue.prototype, '$qs', { value: qs })
Router.prototype.goBack = function () {
  this.isBack = true
  window.history.go(-1)
}
// Object.defineProperty(Router.prototype, 'goBack', {
//   value: () => {
//     Router.prototype.isBack = true
//     window.history.go(-1)
//   }
// })
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
